import axios from "axios"
export let getlist = ()=>{
    return (dispatch)=>{
        axios.get("/api/list").then(res=>{
            dispatch({
                type:"getlist",
                payload:res.data
            })
        })
    }
}
export let addshop = (item)=>{
    return {
        type:"addshop",
        payload:item
    }
}
export let addFn = (id)=>{
    return {
        type:"addFn",
        payload:id
    }
}
export let jian =(id)=>{
    return {
        type:"jian",
        payload:id
    }
}